package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.example.certificate.common.SuperEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author HAO
 * @since 2023-09-18 17:27:46
 */
@Getter
@Setter
@TableName("sys_activite")
@ApiModel(value = "SysActivite对象", description = "")
public class SysActivite extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("user_id")
    private String userId;

    @ApiModelProperty("活动名称")
    @TableField("activite_name")
    private String activiteName;

    @TableField("activite_desc")
    private String activiteDesc;

    @TableField("image_url")
    private String imageUrl;

    @TableField("activite_start_time")
    private LocalDateTime activiteStartTime;

    @TableField("activite_end_time")
    private LocalDateTime activiteEndTime;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @TableField(exist = false)
    private Integer cStatus;
}
